#include "lib_b.h"
#include <iostream>

namespace LibB {
    static int stored_data = 0;
    
    void init() {
        std::cout << "LibB: Initializing..." << std::endl;
        stored_data = 0;
    }
    
    void process_data(int data) {
        std::cout << "LibB: Processing data: " << data << std::endl;
        stored_data = data * 2;
    }
    
    int get_result() {
        std::cout << "LibB: Returning result: " << stored_data << std::endl;
        return stored_data;
    }
}